package com.jiangyao.common.enums;

/**
 * @author yych
 */
public enum ErrorEnum {
    NEEDLOGIN(401, "请先登录"),
    UNAUTHORIZE(403, "暂无权限"),

    JSON_ERROR(401, "json数据错误"),
    PARAMETERS_ERROR(402, "参数错误"),

    NOT_FOUND(404, "流程系统错误"),
    METHOD_NOT_ALLOWED(405, "请求方式不允许"),


    SYSTEM_ERROR(501, "系统错误"),
    TIME_OUT(503, "服务器超时");

    private int resCode;
    private String resMsg;

    public int getResCode() {
        return resCode;
    }

    public void setResCode(int resCode) {
        this.resCode = resCode;
    }

    public String getResMsg() {
        return resMsg;
    }

    public void setResMsg(String resMsg) {
        this.resMsg = resMsg;
    }

    ErrorEnum(int resCode, String resMsg) {
        this.resCode = resCode;
        this.resMsg = resMsg;
    }
}